import {Form} from "@/components/layout/form/form";
import {CASCADERS, SELECT, TEXT} from "@/utils/enums/type-enums";

export const bedAddForms: Form[] = [
  {
    label: null,
    card: [
      {type: TEXT, label: '床位名称', name: 'bedName', span: 6},
      {line: true},
      {type: SELECT, label: '床位类型', name: 'bedTypeId', span: 5, options: []},
      {line: true},
      {type: CASCADERS, label: '楼栋/楼层/房间', name: 'space', span: 5, options: []}
    ]
  }
]

export const bedAddRules = {
  bedName: [{required: true, message: '床位名称不能为空', trigger: 'blur'}],
  bedTypeId: [{required: true, message: '床位类型不能为空', trigger: 'blur'}],
  space: [{required: true, message: '楼栋/楼层/房间不能为空', trigger: 'blur'}],
}